home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
etc
/
RCS
/
panic.c,v
< prev
next >
Wrap
Text File
|
1991-12-03
|
4KB
|
240 lines
head 1.8;
branch ;
access ;
symbols sprited:1.8.1;
locks ; strict;
comment @ * @;
1.8
date 90.10.29.13.19.03; author ouster; state Exp;
branches 1.8.1.1;
next 1.7;
1.7
date 89.04.12.12.43.02; author ouster; state Exp;
branches ;
next 1.6;
1.6
date 88.07.28.17.18.34; author ouster; state Exp;
branches ;
next 1.5;
1.5
date 88.07.28.16.48.52; author ouster; state Exp;
branches ;
next 1.4;
1.4
date 88.07.28.16.41.07; author ouster; state Exp;
branches ;
next 1.3;
1.3
date 88.07.25.14.11.57; author ouster; state Exp;
branches ;
next 1.2;
1.2
date 88.07.21.09.37.08; author ouster; state Exp;
branches ;
next 1.1;
1.1
date 88.07.13.13.32.23; author ouster; state Exp;
branches ;
next ;
1.8.1.1
date 91.12.03.12.03.59; author kupfer; state Exp;
branches ;
next ;
desc
@Bug in va_alist change.
@
1.8
log
@Added call to va_end.
@
text
@/*
* panic.c --
*
* Source code for the "panic" library procedure.
*
* Copyright 1988 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies. The University of California
* makes no representations about the suitability of this
* software for any purpose. It is provided "as is" without
* express or implied warranty.
*/
#ifndef lint
static char rcsid[] = "$Header: /sprite/src/lib/c/etc/RCS/panic.c,v 1.7 89/04/12 12:43:02 ouster Exp Locker: ouster $ SPRITE (Berkeley)";
#endif not lint
#include <stdio.h>
#include <stdlib.h>
#include <varargs.h>
/*
*----------------------------------------------------------------------
*
* panic --
*
* Print an error message and kill the process.
*
* Results:
* None.
*
* Side effects:
* The process dies, entering the debugger if possible.
*
*----------------------------------------------------------------------
*/
#ifndef lint
void
panic(va_alist)
va_dcl /* char *format, then any number of additional
* values to be printed under the control of
* format. This is all just the same as you'd
* pass to printf. */
{
char *format;
va_list args;
va_start(args);
format = va_arg(args, char *);
(void) vfprintf(stderr, format, args);
(void) fflush(stderr);
abort();
va_end(args);
}
#else
/* VARARGS1 */
/* ARGSUSED */
void
panic(format)
char *format;
{
return;
}
#endif lint
@
1.8.1.1
log
@Initial branch for Sprite server.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: /sprite/src/lib/c/etc/RCS/panic.c,v 1.8 90/10/29 13:19:03 ouster Exp $ SPRITE (Berkeley)";
@
1.7
log
@Flush stderr, in case caller doesn't give a CR at end of message.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: /sprite/src/lib/c/etc/RCS/panic.c,v 1.6 88/07/28 17:18:34 ouster Exp Locker: ouster $ SPRITE (Berkeley)";
d56 1
@
1.6
log
@More lint.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: panic.c,v 1.5 88/07/28 16:48:52 ouster Exp $ SPRITE (Berkeley)";
d54 1
@
1.5
log
@Fix arg to vfprintf.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: panic.c,v 1.4 88/07/28 16:41:07 ouster Exp $ SPRITE (Berkeley)";
d58 1
@
1.4
log
@Still cleaning stuff related to lint libraries.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: panic.c,v 1.3 88/07/25 14:11:57 ouster Exp $ SPRITE (Berkeley)";
d53 1
a53 1
(void) vfprintf(stderr, format, &args);
@
1.3
log
@Generate more complete lint library information.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: panic.c,v 1.2 88/07/21 09:37:08 ouster Exp $ SPRITE (Berkeley)";
d40 1
a40 1
#ifndef LINTLIB
d64 1
a64 1
#endif LINTLIB
@
1.2
log
@Change to use vfprintf instead of _doprnt.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: panic.c,v 1.1 88/07/13 13:32:23 ouster Exp $ SPRITE (Berkeley)";
d40 1
a40 1
/* VARARGS0 */
d56 9
@
1.1
log
@Initial revision
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
d53 1
a53 1
(void) _doprnt(format, &args, stderr);
@